﻿using Autofac;
using Microsoft.Extensions.Logging;
using Serilog;

namespace Identification.Importer.Job
{
    public class JobDependencyModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            // Register main component
            builder.RegisterType<ServiceComponent>();

            // Register logger
            ILoggerFactory factory = new LoggerFactory();
            factory.AddSerilog(Log.Logger);
            builder.RegisterInstance(factory);
        }
    }
}